package com.yc.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderinfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderinfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderidIsNull() {
            addCriterion("orderId is null");
            return (Criteria) this;
        }

        public Criteria andOrderidIsNotNull() {
            addCriterion("orderId is not null");
            return (Criteria) this;
        }

        public Criteria andOrderidEqualTo(Integer value) {
            addCriterion("orderId =", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotEqualTo(Integer value) {
            addCriterion("orderId <>", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidGreaterThan(Integer value) {
            addCriterion("orderId >", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidGreaterThanOrEqualTo(Integer value) {
            addCriterion("orderId >=", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLessThan(Integer value) {
            addCriterion("orderId <", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLessThanOrEqualTo(Integer value) {
            addCriterion("orderId <=", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidIn(List<Integer> values) {
            addCriterion("orderId in", values, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotIn(List<Integer> values) {
            addCriterion("orderId not in", values, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidBetween(Integer value1, Integer value2) {
            addCriterion("orderId between", value1, value2, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotBetween(Integer value1, Integer value2) {
            addCriterion("orderId not between", value1, value2, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateIsNull() {
            addCriterion("orderBeginDate is null");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateIsNotNull() {
            addCriterion("orderBeginDate is not null");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateEqualTo(Date value) {
            addCriterion("orderBeginDate =", value, "orderbegindate");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateNotEqualTo(Date value) {
            addCriterion("orderBeginDate <>", value, "orderbegindate");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateGreaterThan(Date value) {
            addCriterion("orderBeginDate >", value, "orderbegindate");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateGreaterThanOrEqualTo(Date value) {
            addCriterion("orderBeginDate >=", value, "orderbegindate");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateLessThan(Date value) {
            addCriterion("orderBeginDate <", value, "orderbegindate");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateLessThanOrEqualTo(Date value) {
            addCriterion("orderBeginDate <=", value, "orderbegindate");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateIn(List<Date> values) {
            addCriterion("orderBeginDate in", values, "orderbegindate");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateNotIn(List<Date> values) {
            addCriterion("orderBeginDate not in", values, "orderbegindate");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateBetween(Date value1, Date value2) {
            addCriterion("orderBeginDate between", value1, value2, "orderbegindate");
            return (Criteria) this;
        }

        public Criteria andOrderbegindateNotBetween(Date value1, Date value2) {
            addCriterion("orderBeginDate not between", value1, value2, "orderbegindate");
            return (Criteria) this;
        }

        public Criteria andOrderenddateIsNull() {
            addCriterion("orderEndDate is null");
            return (Criteria) this;
        }

        public Criteria andOrderenddateIsNotNull() {
            addCriterion("orderEndDate is not null");
            return (Criteria) this;
        }

        public Criteria andOrderenddateEqualTo(Date value) {
            addCriterion("orderEndDate =", value, "orderenddate");
            return (Criteria) this;
        }

        public Criteria andOrderenddateNotEqualTo(Date value) {
            addCriterion("orderEndDate <>", value, "orderenddate");
            return (Criteria) this;
        }

        public Criteria andOrderenddateGreaterThan(Date value) {
            addCriterion("orderEndDate >", value, "orderenddate");
            return (Criteria) this;
        }

        public Criteria andOrderenddateGreaterThanOrEqualTo(Date value) {
            addCriterion("orderEndDate >=", value, "orderenddate");
            return (Criteria) this;
        }

        public Criteria andOrderenddateLessThan(Date value) {
            addCriterion("orderEndDate <", value, "orderenddate");
            return (Criteria) this;
        }

        public Criteria andOrderenddateLessThanOrEqualTo(Date value) {
            addCriterion("orderEndDate <=", value, "orderenddate");
            return (Criteria) this;
        }

        public Criteria andOrderenddateIn(List<Date> values) {
            addCriterion("orderEndDate in", values, "orderenddate");
            return (Criteria) this;
        }

        public Criteria andOrderenddateNotIn(List<Date> values) {
            addCriterion("orderEndDate not in", values, "orderenddate");
            return (Criteria) this;
        }

        public Criteria andOrderenddateBetween(Date value1, Date value2) {
            addCriterion("orderEndDate between", value1, value2, "orderenddate");
            return (Criteria) this;
        }

        public Criteria andOrderenddateNotBetween(Date value1, Date value2) {
            addCriterion("orderEndDate not between", value1, value2, "orderenddate");
            return (Criteria) this;
        }

        public Criteria andWaiteridIsNull() {
            addCriterion("waiterId is null");
            return (Criteria) this;
        }

        public Criteria andWaiteridIsNotNull() {
            addCriterion("waiterId is not null");
            return (Criteria) this;
        }

        public Criteria andWaiteridEqualTo(Integer value) {
            addCriterion("waiterId =", value, "waiterid");
            return (Criteria) this;
        }

        public Criteria andWaiteridNotEqualTo(Integer value) {
            addCriterion("waiterId <>", value, "waiterid");
            return (Criteria) this;
        }

        public Criteria andWaiteridGreaterThan(Integer value) {
            addCriterion("waiterId >", value, "waiterid");
            return (Criteria) this;
        }

        public Criteria andWaiteridGreaterThanOrEqualTo(Integer value) {
            addCriterion("waiterId >=", value, "waiterid");
            return (Criteria) this;
        }

        public Criteria andWaiteridLessThan(Integer value) {
            addCriterion("waiterId <", value, "waiterid");
            return (Criteria) this;
        }

        public Criteria andWaiteridLessThanOrEqualTo(Integer value) {
            addCriterion("waiterId <=", value, "waiterid");
            return (Criteria) this;
        }

        public Criteria andWaiteridIn(List<Integer> values) {
            addCriterion("waiterId in", values, "waiterid");
            return (Criteria) this;
        }

        public Criteria andWaiteridNotIn(List<Integer> values) {
            addCriterion("waiterId not in", values, "waiterid");
            return (Criteria) this;
        }

        public Criteria andWaiteridBetween(Integer value1, Integer value2) {
            addCriterion("waiterId between", value1, value2, "waiterid");
            return (Criteria) this;
        }

        public Criteria andWaiteridNotBetween(Integer value1, Integer value2) {
            addCriterion("waiterId not between", value1, value2, "waiterid");
            return (Criteria) this;
        }

        public Criteria andOrderstateIsNull() {
            addCriterion("orderState is null");
            return (Criteria) this;
        }

        public Criteria andOrderstateIsNotNull() {
            addCriterion("orderState is not null");
            return (Criteria) this;
        }

        public Criteria andOrderstateEqualTo(Integer value) {
            addCriterion("orderState =", value, "orderstate");
            return (Criteria) this;
        }

        public Criteria andOrderstateNotEqualTo(Integer value) {
            addCriterion("orderState <>", value, "orderstate");
            return (Criteria) this;
        }

        public Criteria andOrderstateGreaterThan(Integer value) {
            addCriterion("orderState >", value, "orderstate");
            return (Criteria) this;
        }

        public Criteria andOrderstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("orderState >=", value, "orderstate");
            return (Criteria) this;
        }

        public Criteria andOrderstateLessThan(Integer value) {
            addCriterion("orderState <", value, "orderstate");
            return (Criteria) this;
        }

        public Criteria andOrderstateLessThanOrEqualTo(Integer value) {
            addCriterion("orderState <=", value, "orderstate");
            return (Criteria) this;
        }

        public Criteria andOrderstateIn(List<Integer> values) {
            addCriterion("orderState in", values, "orderstate");
            return (Criteria) this;
        }

        public Criteria andOrderstateNotIn(List<Integer> values) {
            addCriterion("orderState not in", values, "orderstate");
            return (Criteria) this;
        }

        public Criteria andOrderstateBetween(Integer value1, Integer value2) {
            addCriterion("orderState between", value1, value2, "orderstate");
            return (Criteria) this;
        }

        public Criteria andOrderstateNotBetween(Integer value1, Integer value2) {
            addCriterion("orderState not between", value1, value2, "orderstate");
            return (Criteria) this;
        }

        public Criteria andTableidIsNull() {
            addCriterion("tableId is null");
            return (Criteria) this;
        }

        public Criteria andTableidIsNotNull() {
            addCriterion("tableId is not null");
            return (Criteria) this;
        }

        public Criteria andTableidEqualTo(Integer value) {
            addCriterion("tableId =", value, "tableid");
            return (Criteria) this;
        }

        public Criteria andTableidNotEqualTo(Integer value) {
            addCriterion("tableId <>", value, "tableid");
            return (Criteria) this;
        }

        public Criteria andTableidGreaterThan(Integer value) {
            addCriterion("tableId >", value, "tableid");
            return (Criteria) this;
        }

        public Criteria andTableidGreaterThanOrEqualTo(Integer value) {
            addCriterion("tableId >=", value, "tableid");
            return (Criteria) this;
        }

        public Criteria andTableidLessThan(Integer value) {
            addCriterion("tableId <", value, "tableid");
            return (Criteria) this;
        }

        public Criteria andTableidLessThanOrEqualTo(Integer value) {
            addCriterion("tableId <=", value, "tableid");
            return (Criteria) this;
        }

        public Criteria andTableidIn(List<Integer> values) {
            addCriterion("tableId in", values, "tableid");
            return (Criteria) this;
        }

        public Criteria andTableidNotIn(List<Integer> values) {
            addCriterion("tableId not in", values, "tableid");
            return (Criteria) this;
        }

        public Criteria andTableidBetween(Integer value1, Integer value2) {
            addCriterion("tableId between", value1, value2, "tableid");
            return (Criteria) this;
        }

        public Criteria andTableidNotBetween(Integer value1, Integer value2) {
            addCriterion("tableId not between", value1, value2, "tableid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}